package cn.com.yiqi.wsc.dao.role;

import cn.com.artemis.framework.base.commons.persistence.CrudDao;
import cn.com.yiqi.wsc.dao.role.criteria.RoleCriteria;
import cn.com.yiqi.wsc.entity.role.RoleFunc;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface RoleFuncDao extends CrudDao<RoleFunc> {
    List<RoleFunc> pageList(RoleCriteria criteria);

    /**
     * 批量插入
     *
     * @param functions
     * @return
     */
    void batchInsert(@Param("functions") List<RoleFunc> functions);


    /**
     * 根据roleId删除
     *
     * @param roleId
     * @return
     */
    Integer deleteByRoleId(@Param("roleId") Integer roleId);


}